[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/kubernetes/kubernetes
After=network.target

[Service]
EnvironmentFile=-{{ kube_config_dir }}/{{ kube_apiserver_config_file }}
User={{ kube_user }}
ExecStart=/usr/local/bin/kube-apiserver \
                        $KUBE_LOGTOSTDERR \
                        $KUBE_LOG_LEVEL \
                        $KUBE_ETCD_SERVERS \
                        $KUBE_API_ADDRESS \
                        $KUBE_API_PORT \
                        $NODE_PORT \
                        $KUBE_ADVERTISE_ADDR \
                        $KUBE_ALLOW_PRIV \
                        $KUBE_SERVICE_ADDRESSES \
                        $KUBE_ADMISSION_CONTROL \
                        $KUBE_API_CLIENT_CA_FILE \
                        $KUBE_API_TLS_CERT_FILE \
                        $KUBE_API_TLS_PRIVATE_KEY_FILE \
                        $KUBE_API_ARGS
Restart=on-failure
Type=notify
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
